<%@ page import="com.hexu.event.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 86151
  Date: 2021/5/1
  Time: 21:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息修改</title>

    <script type="text/javascript">
        //判断用户注册情况
        function checkLength(){
            var domPassword = document.getElementById("password").value;
            var domUserName = document.getElementById("userName").value;
            if(domPassword.length < 6){
                alert("密码最少输入6字符");
            }else if(domUserName == ''){
                alert("请输入用户名");
            }
        }
    </script>
</head>
<body>

        <table border="1" align="center">
            <form action="/hexu/user/update" method="get">


            <tr align="center">
                <td>账号</td>
                <td><input type="text" name="account" value="${requestScope.key.account}" readonly>
                </td>
            </tr>

            <tr align="center">
                <td>密码</td>
                <td><input type="text" name="password" id="password" value="${requestScope.key.password}" maxlength="12">
                </td>
            </tr>

            <tr align="center">
                <td>用户名</td>
                < <td><input type="text" name="userName" id="userName" value="${requestScope.key.userName}" maxlength="20">
            </td>
            </tr>

            <tr>
                <td>
                    <input type="submit" value="修改"  onclick="checkLength()"/>
                </td>
                <td>
                    <a href="/hexu/user/delete?account=${requestScope.key.account}">注销</a>
                </td>
            </tr>
            </form>
        </table>

</body>
</html>
